package com.zhiche.lisa.bms.dao.model.price;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 支付价格明细
 * </p>
 *
 * @author hongbo
 * @since 2018-10-31
 */
@TableName("lisa_price_purchase_dtl")
public class PricePurchaseDtl extends Model<PricePurchaseDtl> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 支付主表id
     */
    @TableField("head_id")
    private Long headId;
    /**
     * 第一桶油量
     */
    private BigDecimal firstOilCapacity;
    /**
     * 身份证
     */
    private String vccard;
    /**
     * 第一桶油费用
     */
    private BigDecimal firstOilTotal;
    /**
     * 应充卡油费
     */
    private BigDecimal cardOilTotal;
    /**
     * 公里数
     */
    private BigDecimal kilometer;
    /**
     * 应充卡油量
     */
    private BigDecimal cardOilCapacity;
    /**
     * 总运费
     */
    private BigDecimal oilCost;
    /**
     * 司机编号
     */
    private String vcorderno;
    /**
     * 单公里油价
     */
    private BigDecimal oilPrice;
    /**
     * 创建时间
     */
    @TableField("gmt_create")
    private Date gmtCreate;
    /**
     * 劳务费
     */
    @TableField("service_wage")
    private BigDecimal serviceWage;
    /**
     * 总运费
     */
    @TableField("sum_cost")
    private BigDecimal sumCost;

    /**
     * 指令号
     */
    private String orderlineId;

    /**
     * 当前市场油价
     */
    @TableField("current_oil_price")
    private BigDecimal currentOilPrice;

    /**
     * 计算油价的有效期
     */
    @TableField("current_effect_date")
    private Date currentEffectDate;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getHeadId() {
        return headId;
    }

    public void setHeadId(Long headId) {
        this.headId = headId;
    }

    public BigDecimal getFirstOilCapacity() {
        return firstOilCapacity;
    }

    public void setFirstOilCapacity(BigDecimal firstOilCapacity) {
        this.firstOilCapacity = firstOilCapacity;
    }

    public String getVccard() {
        return vccard;
    }

    public void setVccard(String vccard) {
        this.vccard = vccard;
    }

    public BigDecimal getFirstOilTotal() {
        return firstOilTotal;
    }

    public void setFirstOilTotal(BigDecimal firstOilTotal) {
        this.firstOilTotal = firstOilTotal;
    }

    public BigDecimal getCardOilTotal() {
        return cardOilTotal;
    }

    public void setCardOilTotal(BigDecimal cardOilTotal) {
        this.cardOilTotal = cardOilTotal;
    }

    public BigDecimal getKilometer() {
        return kilometer;
    }

    public void setKilometer(BigDecimal kilometer) {
        this.kilometer = kilometer;
    }

    public BigDecimal getCardOilCapacity() {
        return cardOilCapacity;
    }

    public void setCardOilCapacity(BigDecimal cardOilCapacity) {
        this.cardOilCapacity = cardOilCapacity;
    }

    public BigDecimal getOilCost() {
        return oilCost;
    }

    public void setOilCost(BigDecimal oilCost) {
        this.oilCost = oilCost;
    }

    public String getVcorderno() {
        return vcorderno;
    }

    public void setVcorderno(String vcorderno) {
        this.vcorderno = vcorderno;
    }

    public BigDecimal getOilPrice() {
        return oilPrice;
    }

    public void setOilPrice(BigDecimal oilPrice) {
        this.oilPrice = oilPrice;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    public BigDecimal getServiceWage() {
        return serviceWage;
    }

    public void setServiceWage(BigDecimal serviceWage) {
        this.serviceWage = serviceWage;
    }

    public BigDecimal getSumCost() {
        return sumCost;
    }

    public void setSumCost(BigDecimal sumCost) {
        this.sumCost = sumCost;
    }

    public String getOrderlineId() {
        return orderlineId;
    }

    public void setOrderlineId(String orderlineId) {
        this.orderlineId = orderlineId;
    }

    public BigDecimal getCurrentOilPrice() {
        return currentOilPrice;
    }

    public void setCurrentOilPrice(BigDecimal currentOilPrice) {
        this.currentOilPrice = currentOilPrice;
    }

    public Date getCurrentEffectDate() {
        return currentEffectDate;
    }

    public void setCurrentEffectDate(Date currentEffectDate) {
        this.currentEffectDate = currentEffectDate;
    }

    @Override
    public String toString() {
        return "PricePurchaseDtl{" +
                "id=" + id +
                ", headId=" + headId +
                ", firstOilCapacity=" + firstOilCapacity +
                ", vccard='" + vccard + '\'' +
                ", firstOilTotal=" + firstOilTotal +
                ", cardOilTotal=" + cardOilTotal +
                ", kilometer=" + kilometer +
                ", cardOilCapacity=" + cardOilCapacity +
                ", oilCost=" + oilCost +
                ", vcorderno='" + vcorderno + '\'' +
                ", oilPrice=" + oilPrice +
                ", gmtCreate=" + gmtCreate +
                ", serviceWage=" + serviceWage +
                ", sumCost=" + sumCost +
                ", orderlineId=" + orderlineId +
                "} " + super.toString();
    }
}
